<?php
namespace app\admin\logic;



class GoodsAddlogic
{

    public static function getGoodsAddInfo($param)
    {
        $data = [
            'goods_name'=>$param['name'],
            'price'=>$param['price'],
            'vip'=>$param['price_shop'],
            'cate_id'=>$param['cid'],
            'if_show' =>$param['if_show'],
            'recommended' =>$param['recommended'],
            'spec_qty' =>$param['num'],
            'brand' =>$param['bid'],
            'recom' =>$param['recom'],
            'description' =>$param['content'],
            'tags' =>$param['tags'],
            'add_time' =>time(),
        ];
        return $data;
    }


}